package org.yefei.homeworkday02;

import java.util.Scanner;

public class CalculateSix {

	public static void main(String[] args) {
		// 6:输入两个整数，计算他们加减乘除余的结果
		int plus, minus, multiply, divide, remainder;
		Scanner input = new Scanner(System.in);
		System.out.print("请输入第一个整数：");
		int num1 = input.nextInt();
		System.out.print("请输入第二个整数：");
		int num2 = input.nextInt();
		plus = num1 + num2;
		minus = num1 - num2;
		multiply = num1 * num2;
		divide = num1 / num2;
		remainder = num1 % num2;
		System.out.println("两数之和是：" + plus);
		System.out.println("两数之差是：" + minus);
		System.out.println("两数之积是：" + multiply);
		System.out.println("两数之商是：" + divide);
		System.out.println("余数是：" + remainder);
	}

}
